I cleaned up the AGN flag and made a code for it!