Added decrypt functionality