Improved code for setting the value of Status: