Added convert_normalize function