Add console input support