Add methods to add and remove contexts.