Added slider to control weights