Removed unnecessary warnings.