Added condition to check if secure parameter is passed through the
command line.