DoLineSultan updated

Handled Variable and Error Case