Solution for transform problem. Real headache. Just need to find the right pattern.