Require that weight function must have 3 arguments.
Add ghyselslag function