Modified so that tag could be used for the register method.