Decoupled main from ActionController.