Add middlewares to append timestamps

:bow: