More array manipulation added