Fourth incarnation of memery. Hopefully done right this time...