Implement main app functionality