Hooked up the callbacks