Clean the code of unneeded code