Trying with lock