Initial work on new Repository class.