Sloppily added a chunk class. Will be revised later.