Clean up codes.