Pakistan getting to grips on terror