Added a small sleep delay to make sure the daemon is running.