Added more application logic.