Can you get either one of the functions working independently?
Posting your code may also help.