Use classes rather than location attributes