Convert machine registration to use module init functions