Thread was unconditionally calling <stack>->size() without validating that the stack actually exists
As the number of libraries is increasing, root directory starts to expand. This adds better organization for libraries