Added some convenience functions to utility.cpp, mostly relating to ErrorScreen.