Add simple boundary checks for a single block