Move conversion from main function