Improve loader in example application.