Implemented optional server handling, and security settings (not yet implemented)