Add readOpen and readClose