Added functions and scripts.