Changed code to not output to screen.