Revert "Redo of the main mod"

This reverts commit 743452c4aa95ff17ee877167ccd64d1dde466521.