Take pagination into use