In major revelations, Headley, testified before a court here for the second day via video-link from the US, said he was working for Pakistan Army and ISI besides LeT (Lashkar-e-Taiba) and that he knew about ISI official Brigadier Riyaz being the handler of LeT commander Zaki-ur-Rehman Lakhvi.