Added a queue for setting chunk data.

Fixes #1196.