Easier to set cache limit, #33
Fixes bunch of bugs