Updated attribute algorithm