Removes consoles logs, refactor.