Fixed run script to use main() method