Update paths and function.