Removes no longer needed code