Updated function call to new format