Add and customize smex