Clean up the codes.