Add support for nss module

This branch adds support for the nss module.