timestamps added. Basic functionality