Added non-blocking via threads and commands' queue