Main application file