Added check for closing paren