Added frame stepping to sample