Generic lasso payload code (moved out of brawl4d project)