How does attribution work?