Renamed compute function to listen