~ renamed Status to State
~ When function simplified