Added recording control in BasicExample