Small function change. Should work the same way.