Message sending working. STDIN crashing