Boundary checking and other nuances