Removes logging, complies to JSLint & increases performance.