while loop delay the serialEvent function?