Separate File Utility function
Separate GUI code from the backend