Added debugging console.logs