Updates to occultation mode
Adding support for groovy mode