Made the helper methods private since they aren't part of the end result.