Preview working

Updated with sessvars