Added useTLS option