Better naming for resume method; added synchronized since it does write
to the ID-Order map.
Added packages.