Debugging PL.... seems to be correct now, final checks to be done