Moved to more generic event binding implementation.