Started to move instances to rel files, and started to unhardcode initialization and finalization code.