Add a comment here to mark what this part is doing? It is unintuitive.