Remove debugging code
Remove unused pagination links