[IMP]: move set_remaining_time method and add fields in xml.