Added inputhistory