Write to packet after all actions are performed.