Add needed functions.