Removes unneccesary code