Added asynchronous command handling