We have added lock outside this func.