Changed function name for lock control