WIP: Further functional decomposition to aid in working out the permutations problem