Separate thread for analysis

- Possible to abort analysis
- UI no longer frozen