Moved method to utility class.