Added lock mode