Moved methods form Main to Converter