Separate the app and the lib.