Added sample data recording and playing