Move code around, register for property change notifications.
Set properties before map, just to be nice.