Helper for script