Change detect option so it does not require a keyfile