Add quick register function.