Working query and timeline implementation