Moved to using write instead of send as I don't need the flags.