Updated seriel execution code.