Added PAM support