Moved datasets generation inside check functions.