Change setPos method for localmcpi