Add __enter__ method