Functions for scripts or reports