Modified node matrix construction for better readability.