Adjust algorithm to decide where to draw