Added authorization and some spec changes.