Moved all function definitions into a single cell. https://app.asana.com/0/16684320709121/18180849296829