Added some utils funcs