Cleaned up Register* functions. Removed partially implemented flag parameter.