First pass ranking algo