Rewrote script for new Udacity UI.