Removed some unused codes.