Inline functions whenever possible