Add handling for duplicate applications.