Adding preliminary application discovery; tests.