Remove unnecessary commands, unneeded output / resets