Added pagination pattern.