Added some utils functions