Added hash and salt functionality.