Cleaned up script.