Removed infinite analysis thread and merged it into the wakeup thread