Added Authorization functionality