Made intersection code more readable.