Added some conversion routines for later use