Added log statements and printing book titles