Code

Move app-specific logic and file operations up from the lower level.