Start of helpers for content handling.