Move __main__ into it’s own file.