Initial conversion code written