Fixing incompatability with new version of secr.