Update some functions