Simplified Main class.