Hard coded page cycle code, needs FIXING, but I don't know how at the moment!