Added debugging for groovy