Adds PWD functionality