Added Height limit to fix OutOfBounds Errors.