Move the initialization of the C module to its own function