Added a provision for passing flags in with the register statement
Fixing style during equality tests