Moved distinct for clarity