Implemeted a bit of hand-built security. To be replaced later.