Revert "MAINFUNC"

This reverts commit ef75af633213f94ea2f1c6fe383eb95006437c1b.