refactoring
Adding logSender