Re-implement existing code using the Advanced User Interface library.