BacktrackingSolver: Handle multiple commands from a single implementation

Fixes issue #60