adjusted sleep time after posting
Updated socket timeout.
added the ability to run once, instead of looping.