Change function name from setCOM to setLocalCOM.