Make interval time in milliseconds

Change stop wait signal timeout to dynamic from config file.