Remove console.log + reformat code