Some temporal modeling code