Added rough version of paging controls.