Added readAll function.