Added array segment assignment - partially working