Removed unneeded listener code from resample