Added an equality predicate for commands.