Changed mutex -> monitor