Rewrote a few scripts, and removed 2 compatibility functions for now.