Renamed weightf to weight_function and removed a !DEC ATTRIBUTES
line which was causing problems on stampede.