Planned algorithm