I think you forgot 'self' in the function prototype.