Removing daemon loop. the listener will do the entire magic