Added global variables and a prompt