Fixed use of new function.