Updated name from previousLocation to previousId