Added callback hooks, removed stray console.log