Make script actually do something useful when executed as main.