Added box array functionality