Created RegistryCrit

Also changed write case