Changed display code to not refresh the screen as much