Making the unified function more universal and convenient