Added missing helper script functions