Added type option.
Improved help docs.
Responding to SPN requests.