Working All-in-one script