First attempt at using generic bind/unbind mechanism.