Modified carbonate template join function