Made code generic so any application can be added