Error when status is true
Use local variables