Volume script made more universal