Made the gallery work.