Add improved psglib