Try it as a function instead