Removed duplicate console writeline.