Remove console.log, add default modes array
Beautified