Updated the functions.