Changed usage of scope. to more efficient attrs.