Made some adjustments to the initialization to fix duplication of boxes.