Allow for secure flag to be passed.