Some changes to the front-end demo to remove deprecated functions.