Replaced all printlns with call to a BasicLogService