Fixed named arg + added logging messages

Following @remh comments