Adding secure/unsecure option to main.dart.