Cleaned up main method
For Dark Remnant, set max stack size to 1