Added procedures addWmeA and removeWmeA to operate inside an action.