Implemented Convert and Compile logic.