Ahmed Atif, active 1798-1803, Chief Secretary to the Sultan