I am in the process of changing model%xx etc to allocatable arrays instead of pointers.