Building the context macro