Refactor: add _get_timestamps()