Modified sample code for using TVAST lib.