Updated for new api endpoint