Restructure: Functions used across several scripts now reside in helpers.