Better processing API. Handle out-of-range errors