Added pagination api support