Remove console logging
Refactor boundary for more clarity of nested arrays