For a more in-depth discussion around what you are trying to do, you may want to take a look at the following thread: