Core: Add console.log before the handle gets called