Don't use globals

Also, don't reassign constants :smile: