Implement security service.