Makes the script more DRY