Removed some scripts that weren't being used. Extracted out some utility functions into their own script.