Updated the function