Added some functions to work with