adding Andre's changes that read command line options and add switches with higher delays