I think I am not flushing my buffer correctly. I'm trying to check two things in this function. I can get each piece to work independantly but throwing them together is giving me a headache. First...