Added two useful functions that are not used yet.