Updated functions.