Add decode s19 function