App now only scans for peripheral devices for set period.
Removed all runOnUIThread and replaced with handlers.