Initial version of the conversion script