Add timestamp to logging; Fix syntax error in sendto().