Made functions inline