Adjusting page size and error catching