Fixed first index bug.
Fixed page order, and removed debug logging.