Moved hardware diagnostics into seperate file as conditional code of specific use