Added context managers utilities