Added authentication support.