Adding recMode snippet.