Add background thread, file log and new fragments