Removing useless codes.