Added console.log, fixed a settings bug