Updated smlib