Change the implementation a bit so that a context could be created many times.