Replaced array_push function reference with a faster ordinary element insertion method