Recording Function Added