removed dep
Added lock behaviour.