Added the status check for a agent to see if their state and status is. Added output to the post so the user knows if it was correctly set or not