setProperty now accepts a transformation