Converted Code from JLCA