Use better outline algorithm