Added groovy mode