Removing unnecessary codes.