@seandesmond  `leaving` is not used inside this function. Please remove.