Inline some small functions