Updated throw lines with correct syntax