New style registration with a simple function