See comment on setUpStatus() function.