ENH: Add context manager