Fixed conversion compilation bug and refactored a print() function.