Changed a prompt to a console.log