Updating grammar