Add timestamp method.