Fix for logging. Add status function.