Re-enabled mod initialization, and disabled header generation again. Also uncommented a small bit of code that was disabled for this change.