Slight improvement in placement algorithm