Added publish() functions that make more sense. Removed a usleep.