Updated advanced tutorial per new API changes