Added softlock utilitiy