Use context parameter to keep queue ordered