Removed extra lines
Silenced error message when in command-line window