Moved utility functions to View.Util