Added pages logic. Lack submission.