Added joint recording routine