Added stats command in daemon