Added grammar activation

Added grammar activation