Removes un-needed bits of code