Update general functions