Updating the pattern library