Does it cut out when printing this line?
Serial.println("Code has started!");
Maybe Serial doesn't finish sending the data before execution of the code below starts.
Serial print runs on interrupts and you turn those off for maybe longer than you think.