Renamed dispatch function to detach