Switched the code to use the log instead of out.