Reimplementation of the Meltzer model