Fix security

Resolves #7