Updated to address missing end parentheses