Use subscribeToCommand

Closes #38