Added array manipulation to utils