Downspout optimization