Adding infrastructure to support gallery creation.