YSample stable with all functions working