Added decrypt function