Added code that creates a reader at startup