Thank you bogieman! I think I solved it in another way, more similar to my original idea. However, your link is very useful!
Looks like posting on the forum is a really good way to discover a solution on my own shortly after
Here is how I did it.
&stc=1&d=1435057665