Better unrepaginate code