How exactly are you calling the function?