Added some util methods.