Rename `zL` to `currentPage` and refactor a bit