changed CreateAndSetupCommand method to be public