Explanation of the apps script stuff