Remove code from end