Added normalize function to utilities