Inline a few functions