Integrate guard, thin and turn as per issue #2