Adds magic method chaning syntax.