Add grid layout parameters to modules and commands.