Improved gopm gen