Made Diagnostics a functor