what's ray used for?