Removes some useless code