Code for using the "Reader" automatically