Generic main() script for standalone apps
Generic main() script for standalone apps