Implemented portal expiry, book detection etc