Added loop for reader, untested yet