Adding callback support to range.