Proper variable passing to scripts.