Outlined algorithm