Added login and flushing the debugging output.