Moved scaling / padding /sorting functionality to standardization file.