Purge unnecessary code