Added basic code security checks.