Added activity functional to application.