Adding small function to script helpers