added capability of passing a timestamp to generate an in