Fix to handled same command being added more than once

Code checks if Command is already exisisting and in that case omits command