Bug fix, arduino resets on serial, so we need to impose a delay to write data properly