Inlined two helpers