Stupid reference logic...