Closes #70, Fixes #50, Grid thresholds feature