Made output shown through an alert window rather than printouts