Revert "MainCode"

This reverts commit c59a897a7155ffd68cd8adc95ee0a67fbca300b8.