Checked example still works and made appropriate fixes.