Merged helper script into main