Adding more code for the test application.