Array script tweaks