Refactoring. Added a new mission type and more mission customization.