Split out status function to separate class