Gutted old script for CLI interface