Tried doing this, it still returns nil even though there are things in S. I print it before I return it.