Added all function calls and #includes.