Fixed running on hd3000 (8192 was too big for my system, not sure
what values should be used best, I used the previous code here).