Change implementation of SDict