Fixes bugs. Adds JCL implementation