Initial version of the app code.