Completed the challenge and fixed a bug in ChunkHandler