Changed default config
Added pagination