Works with multiple attributes