Started porting StorageModel to C