Remove all unnecessary code