Completion of some functions.