Added notify flat to register user function