Added Exceptions to throw for out of bounds cases.