Changed type of cycle in class Application.