Code working now, delays shortened slightly though will still be reduced as I test