Fixed bug. Removed unnecessary recording functions.