Update listen code