Removed setModel method, added to security constructor