If you change these to 
```
    ('page', int),
    ('batch', int),
```
then it checks that they're always integers pass to it.