n_csp_components is not declared / initialized anywhere, right? boom.