Added a few util methods