When Secure/Unsecure not given determine automaticly