Moved write and stdout options to main app