Added delta based sleep time in order to smoothern the serial lag