Moved over the utility functions from the Sweia class to the Utility class