All helper functions are now inlined.