Cleanup methods in scripts.