Standardizing some functions