Allow overriding scheme and secure mode