Added console command functionality and stop server functionality.