Fixed: weight argument now is double