Added context pool and tests.