Added gallery code.