Revert 8ed661a, which introduced an undeclared variable and broke compilation
Merge pull request #428 from arjun810/fix-registration-compile

Revert 8ed661a, which introduced an undeclared variable and broke compilation