Inlined functions to prevent duplicate symbols