Tried using deprecated api for psa