Changed the app to use CPR as library