Adding PAM implementation