More generic script