Improved solution for PERM