Add missed function variable declarations