Prevents a command from being executed multiple times.
exists function now ignores whitespace when comparing strings
adding unit test for command aggregate changes
Fix formatting
Prevent commands from being executed multiple times