Sostituire i delay con i millis