Corrected the names for reader and writer