Implement pages system.