New resolution algorithm wip