Make ``main`` function callable from other scripts.