Added gallery functionality and more.