Add some new methods to Util.java