This should probably be passed in as well to the constructor instead of required directly.