Added parse to array function