Added code to interface with SLDA