Add processing to layout