Removed console log and added system.out.