added require statments to functions script.