Try to implement locking for update_mine