Implemented done function to trigger items waiting on an id.