Explained it in this post. The comments section of that post is better to answer further queries regarding this.