Modified to inherit the NetCommonsAppController.