Added ctrl-c kill command and loop