Removed unneeded codes.