Bring self into encoder macro