Handle 1-based offsets from the REST

Not sure if we'd rather have zero-based offsets!!