Please take a look at the following link where @andrewjohnson gave answer which is similar to your question.