Take a look at the comments in these two posts. They’re similar to what you’re trying to achieve and might give you some ideas.