Fixed Main method to run continuously until interrupted.