Made pagination more customisable