Support code for shields.