Look at This , I was working on something similar. And thats the help these guys gave me and it worked great.