Added class member and necessary functions.