Cleaner implementation of DO-FILES.