Updated to allow for only one instance of the command object to be created on the page.