Starting work on imperative code conversion