Added xml on one line & added a time check when to send a create command