Simplifying code after researching what GPE generates