Added reg procedure