Added code for the app