Refactor: remove debugging console.log