See the first part of this post.
Also
You may actually only need the second post and the code @jonathan offers.
Archive.zip (357.9 KB)
But an example doc of your project setup would help to help you further.