Forgot to put callback in function definition