Replaced low level book handling with api