Turns out we do have to check edge cases. Implemented that.