Moved extension mod to module from main file.