Adding more to the normalizing helper function