--------------- Code Conversion --------------------