you're killing me here.

Make a proc that checks if everything is okay. That is already coded. Use that code for it. Make the old checks use the new proc.