Added the out of range exception.