millis used for timing, adding functions