Extract some of the more complex functions