Changed order to minimize beginning lag. Changed treatment of offset.