Added requires_slm decorator to functions that require SLM to be there.