Adapted to new /apps api