Work-in-progress: Extending the ref gen script.