Locks and algorithm partially implemented, release lock part pending