I did this also, check this thread here:
for the code I used and the solution provided to me to get it to work correctly.