Modified call begin, begin_file, end_file, end method to be together