Reuse some functions.