Fixed terminal focus issue. Deleted a few lines that not necessary.