Making constants, utils and endpoints a function if need be.