Update function from develop.