Removed unnecessary codes.