Changed array_push to array[] to improve performance