Named hooks in interfaces. Bugfixes #966.