Reworked the application to use LibLDD