Some changes to category and status handling to address Array cateogry bug.