Added record function and play again capability