Initial (not working) implementation of sa