Fixed missing synchronized to functions