Added more features for IO.