- Enhanced sync mechanism between threads
- Added background mode to prevent prompting user when run as cron job