Updated the function docs with the updated syntax