Added authorization param checking.