Added closeReadingPipe method and extended keywords with common
method calls.