Tidied up scripts.