Unintentional delay with Arduino