Removed debug writeln for message. Added constant for dot length - DOTLENGTH