Liftsample code