Add thread pagination support

Remove line