Broke main into smaller files