Added .closest() function