Created application logic