Set default location for the function if it is not already set.