Also, preliminary steps to merging model.c and gl_model.c as much as possible before splitting them into functional chunks.