Fixes for sending in commands reliably.