Cleans up code.