Initializes repository.