Function methods.