Added simple weight function in playouts. Added gui function.