Cleaned up obsolete scripts and merged some scripts into one.