Generalized mode binding function