Remove unused last parameter in sendObject function.
Remove superfluous debug message.