Added some conversion functions
Added functionality for conversions