Added manually settings for scan period and pause period.
Added shared pref. to store and restore value of time periods.