Removed unneeded scripts and functions.