Implemented messages pagination