Add state.sls_id function