Raise error on out of bounds.

This address issue 13.