Added contexts manager.

Signed-off-by: SeynovAM <sejnovalexey@gmail.com>