Adding security checks and exception handlers