Removed excessive writelns.