Inlined functions.