Toy implementation of SLIM and SSLIM methods.