Fixed some AsyncTask bugs; changed command history behavior