Moved to a single-file model for the SWIG interface.