Changed append() to array_push().