Updating patterns index