Add context tracking to only emit begin keyword when needed