Function blocks for diagnostics