Updating examples due to f8 2014 changes and to remove deprecated functions.