Rewrote book search functionality