Updating package list to array