Remove unused code/change alert to console.log