Adding some util methods