More threading improvements.

- Fix commands implementation
Signed-off-by: Chris Sanders <zidane@outlook.com>