Added some new functions to utils