Refine more codes.