Move census lookup to pre-script