Remove istream and ostream function.