How can I prevent duplicate applications?