It seems something is overwriting the status before it is saved to a variable. Fixed by setting the last_status variable at the very beginning.
It seems something is overwriting the status before it is saved to a variable. Fixed by setting the last_status variable at the very beginning.