Moved normalize function to utilities.py