Fixes #138 and #127. Performance updates to Distributed Commands.