Deleted unnecessary codes.