Implemented templated transformation functions