Inverted secure mode. Fixes #1