Trim down the script and add helper to it