This allows users to define reporters and listeners in files different from the main file. Related to #991, #986