Can handle empty files gracefully.

Artificially creates main and halt.