Made static functions inline