Added some INLINABLE pragmas. Maybe I'll remove some later