Inlined functions to prevent redefinitions in linking