Rename nested_set to action, and remove some debug code