Make pagination static function