Narrowing down outofbounds error.