Turned into a function.