Rewrite using headers to define the library and module.