Added a timer to cancel the discovery method

DEFAULT_VALUE = 6000 mileseconds
Some settings