Fake register function.