Remove unnecessary stuff, and set default output in console