Updated the script to use splatting.