Added functions, modified libraries.