Add app logic