Registration now uses slot (fixes #87).